Skip to content

chore(stable): disable marketplace entry + strengthen ASR correction rules#449

Merged
appergb merged 2 commits into
betafrom
chore/marketplace-disable-stable
May 15, 2026
Merged

chore(stable): disable marketplace entry + strengthen ASR correction rules#449
appergb merged 2 commits into
betafrom
chore/marketplace-disable-stable

Conversation

@appergb
Copy link
Copy Markdown
Collaborator

@appergb appergb commented May 15, 2026

User description

Summary

  • Disable marketplace entry: «风格市场» pill on Style page → gray + 点击 toast「暂时未开放」. Marketplace component / IPC / MarketplaceModal 等代码全部保留,云端就绪一行恢复。
  • ASR correction upgrade: 吸收「完全重写」社区 prompt 的纠错优点,整合进 COMMON_RULES
    • 三级置信度策略(高 → 直接换;中 → 最优候选;低 → 保留)
    • 中文音译 → 英文技术词还原(脱肯 → Token / 西克瑞特 → Secret Key 等)
    • 技术字段大小写规范化(API / App ID / Access Key / Secret Key / OAuth / JWT / UUID...)
    • 大小写敏感场景例外(代码变量 / Bash / URL 段保留)
  • 4 个 builtin pack 共享 COMMON_RULES,一次更新全部生效。

Test plan

  • npm run build 通过
  • cargo check --lib 通过
  • cargo test --lib types::tests 15/15 通过
  • 本地 build-mac.sh 通过 + Marketplace 入口确认变灰
  • CI 三平台 build 绿
  • pr_agent 无 issue

🤖 Generated with Claude Code


PR Type

Enhancement


Description

  • Gray out Style Marketplace entry

  • Show toast on marketplace clicks

  • Upgrade ASR correction confidence rules

  • Normalize technical terms and casing


Diagram Walkthrough

flowchart LR
  PR["Stable churn changes"]
  UI["Style page marketplace button"]
  ASR["COMMON_RULES ASR correction rules"]
  Toast["Disabled click toast"]
  Rules["Confidence-based text normalization"]
  PR -- "UI disable" --> UI
  UI -- "click feedback" --> Toast
  PR -- "rule expansion" --> ASR
  ASR -- "applies to" --> Rules
Loading

File Walkthrough

Relevant files
Enhancement
types.rs
Expand shared ASR correction rules                                             

openless-all/app/src-tauri/src/types.rs

  • Reworks COMMON_RULES auto-correction guidance
  • Adds confidence-based replacement behavior
  • Adds transliterated technical term normalization
  • Expands casing and preservation exceptions
+12/-5   
Style.tsx
Disable marketplace access in style page                                 

openless-all/app/src/pages/Style.tsx

  • Replaces marketplace open action with toast feedback
  • Changes button styling to a disabled gray state
  • Updates title text to reflect unavailable feature
+10/-5   

…rules

Marketplace entry → 灰色 pill + 点击 toast「暂时未开放」
- 风格市场云端服务尚未上线,先在 UI 层禁用入口
- 真正功能(Marketplace 组件 / IPC / backend client / MarketplaceModal)全部保留
- 后续云端就绪时改回 onClick={() => setMarketplaceOpen(true)} 即可恢复
- 配色从蓝色 pill 改为灰色,明确视觉禁用语义

ASR 主动纠错升级(吸收「完全重写」社区 prompt 的优点)
- types.rs::COMMON_RULES 规则 5 重写:
  - 三级置信度策略(高 → 直接换;中 → 最优候选;低 → 保留)
  - 中文音译 → 英文技术词还原(脱肯/西克瑞特/埃克塞斯 Token...)
  - 技术字段大小写规范化(API/App ID/Access Key/Secret Key/OAuth/JWT/UUID 等 12+ 字段)
  - 大小写敏感场景例外(代码变量 / Bash / 路径 / URL 段保留)
- 新增规则 6:禁止输出修改说明 / 原文对比 / 编造字段,所有模式无例外
- 4 个 builtin pack(Raw/Light/Structured/Formal)共享 COMMON_RULES 自动获益
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 15, 2026

PR Reviewer Guide 🔍

(Review updated until commit 461a4f3)

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ No major issues detected

CI 测 polish::tests::common_rules_include_auto_correction_and_natural_organization
hard-codes 'prompt.contains("5) 自动纠错")' 作为 guardrail;上一 commit 把前缀
改为「ASR 主动纠错」导致 4 个 mode 都失败。前缀回到「自动纠错」,新增说明
夹在括号里:'5) 自动纠错(ASR 主动纠错,按置信度分级处理)'。
@github-actions
Copy link
Copy Markdown

Persistent review updated to latest commit 461a4f3

@appergb appergb merged commit e8d0ccf into beta May 15, 2026
4 checks passed
@appergb appergb deleted the chore/marketplace-disable-stable branch May 15, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant